/*
 * @Author: songxiang songxiang0806@qq.com
 * @Date: 2025-08-21 08:57:02
 * @LastEditors: songxiang songxiang0806@qq.com
 * @LastEditTime: 2025-08-27 14:39:06
 * @FilePath: \supermap-webgl\src\main.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE/
 */
import { createApp } from 'vue'
import App from './App.vue'
import { pinia } from '/@src/store'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

// 如果您正在使用CDN引入，请删除下面一行。
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

import SuperMapWebGL from '/@packages/components'

app
  .use(pinia)
  .use(ElementPlus, {
    locale: zhCn
  })
  .use(SuperMapWebGL)
  .mount('#app')
